package dao;
import java.util.Calendar;
import java.util.List;

import javax.ejb.Remote;

import dto.RoomDTO;

@Remote
public interface RoomDAORemote {
	
	void addRoom(RoomDTO room);
	void deleteRoom(RoomDTO room);
	void updateRoom(RoomDTO oldRoom, RoomDTO newRoom);
	List<RoomDTO> getAllRooms();
	RoomDTO getRoomById(int id);
	RoomDTO getRoomByAddress(String address);
	int getBusyPlacesInterval(Calendar cal, int id, Calendar cal2);
	int getBusyPlacesInterval2(Calendar cal, int id, Calendar cal2);
	public int getFreePlaces(Calendar date, int idRoom);
}
